package com.dzh.mapper;

import com.dzh.pojo.Ticket;
import com.dzh.pojo.Tour;
import com.dzh.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface AdminTicketMapper {
    Integer deleteguke(String username);
    Integer updateadminmm(User user);
    Integer addticket(Ticket ticket);
    Integer deleteticket(String uid);


    Integer addTour(Tour tour);

    Integer deleteTour(String tourname);

    Tour querytourByTourname(String tourname);

    Integer updateTour(@Param("tourid")String tourid, @Param("tourname")String tourname,@Param("tourimg1") String tourimg1,
                       @Param("tourimg2")   String tourimg2,@Param("tourbackground") String tourbackground,
                       @Param("tourstrategy") String tourstrategy,@Param("tourday") String tourday,@Param("tournotice") String tournotice,
                       @Param("tourphone")  String tourphone,@Param("tourmoney") int tourmoney,@Param("tourrecommend") int tourrecommend,
                       @Param("tourplace") String tourplace,@Param("tourtime") String tourtime,@Param("tourcity") String tourcity,@Param("tourid1") String tourid1);
}
